<?php

/**
 * GestdentPersonal form.
 *
 * @package    gestdent
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class GestdentPersonalForm extends BaseGestdentPersonalForm
{
  public function configure()
  {
   
    //$years = range('1930','2029');
    //$this->widgetSchema['fecha_nacimiento']->setOption('years',$years);
    //$this->widgetSchema['fecha_nacimiento']->setOption('format','%day%/%month%/%year%');
    //$this->validatorSchema['fecha_nacimiento']->setOption('min',convertDateArrayToTimestamp(array('year'=>'1930','month'=>'11','day'=>'10')));
    //$this->validatorSchema['fecha_nacimiento']->setOption('max','');
    //$this->addMessage('max', 'The date must be before %max%.');
    //$this->addMessage('min', 'The date must be after %min%.');

    //$this->widgetSchema['rut'] = new dcWidgetFormColorPicker();

    $years = range(date('Y') - 80, date('Y') );
    $this->widgetSchema['fecha_nacimiento'] = new sfWidgetFormJQueryDate(array('format'=>'%day%%month%%year%', 'years'=>array_combine($years, $years)));

 
//$this->validatorSchema['fecha_nacimiento'] = new sfValidatorDate();


 }
}
